﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;

namespace ZDSoft.TES.Entity.FunctionEntity
{
    [ActiveRecord("EvaluatesRule")]
    public class Rule : EntityBase<Rule>
    {
        /// <summary>
        /// 规则名称
        /// </summary>
        [Property]
        public string RuleName { get; set; }

        [HasAndBelongsToMany(typeof(Evaluate), Table = "EvaluateRule", ColumnKey = "RuleID", ColumnRef = "EvaluateID", Lazy = true)]
        public IList<Evaluate> Evaluate { get; set; }

        [HasAndBelongsToMany(typeof(Quota), Table = "RuleQuota", ColumnKey = "RuleID", ColumnRef = "QuotaID", Lazy = true)]
        public IList<Quota> Quotas { get; set; }
    }
}
